import '@/assets/css/public.css'
import '@/assets/css/vant-cover.css'
import { createApp } from 'vue'
import * as AppConfig from '@/config'
import App from './App.vue'
import router from '@/router'
import VConsole from 'vconsole'
import { isTest } from '@/util'
import { pinia } from '@/store'

console.log('==NODE_NAME==', process.env.NODE_ENV)

if (isTest()) {
  new VConsole()
}

const app = createApp(App)
app.use(pinia)
app.use(router)
AppConfig.initHttp()
AppConfig.initStore()
AppConfig.silentLogin()

app.mount('#app')
